<style>
#flagHolder_2{
	overflow-x:auto;
	
}
</style>
<div class="ui-widget c_flag_re" id="flagContainer_1"  onclick="bollFun1()"> 
	<div id="flagHolder_2" class="seting_flag">
	 <a id="img" style="margin:0;">
	 <img src="<?php echo $this->basePath(); ?>/uploads/India_1.png" class="img_w">India(+91)</a>
	</div>
</div>
<div style="display:none;position:relative;" id="cflag">
<span style="position:absolute;top:0;left:0; padding:5px" id="s_icon"><img style="width:18px;" src="<?php echo $this->basePath(); ?>/images/1395500590_search_1.png"/></span>
    <input type="text"id="flag_1" class="c_flag_in" placeholder="Search...." style="padding-left:20px;width:90px;" onblur="showFlag1();"/>
</div>
<script>
	var imagePath="<?php echo $this->basePath(); ?>";
(function( $ ) {
var proto = $.ui.autocomplete.prototype,
   initSource = proto._initSource;

function filter( array, term ) {
   var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" );
   return $.grep( array, function(value) {
       return matcher.test( $( "<div>" ).html( value.label || value.value || value ).text() );
   });
}

$.extend( proto, {
   _initSource: function() {
       if ( this.options.html && $.isArray(this.options.source) ) {
           this.source = function( request, response ) {
               response( filter( this.options.source, request.term ) );
           };
       } else {
           initSource.call( this );
       }
   },

   _renderItem: function( ul, item) {
       return $( "<li></li>" )
           .data( "item.autocomplete", item )
           .append( $( "<a></a>" )[ this.options.html ? "html" : "text" ]( item.label ) )
           .appendTo( ul );
   }
});
})( jQuery );

$(function() {
       var availableTags1 = [
          { label: '<img class="img_w" src="'+imagePath+'/uploads/Afghanistan-Flag-24.png" >Afghanistan (+93)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Albania-Flag-24.png" >Albania (+355)', value:'Albania-Flag-24.png,Albania(+355)' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Algeria-Flag-24.png" >Algeria (+213)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/American-Samoa-24.png" >American Samoa (+1684)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Andorra-Flag-24.png" >Andorra (+376)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Angola-Flag-24.png" >Angola (+244)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Anguilla-Flag-24.png" >Anguilla (+1264)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Antarctica-24.png" >Antarctica (+672)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Antigua-and-Barbuda-24.png" >Antigua And Barbuda(+1268)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Argentina-Flag-24.png" >Argentina (+54)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Armenia-Flag-24.png" >Armenia (+374)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Aruba-24.png" >Aruba (+297)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Australia-Flag-24.png" >Australia (+61)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Austria-Flag-24.png" >Austria (+43)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Azerbaijan-Flag-24.png" >Azerbaijan (+994)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/bahamas.png" >Bahamas (+1242)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Bahrain-Flag-24.png" >Bahrain (+973)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Bangladesh-Flag-24.png" >Bangladesh (+880)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Barbados-Flag-24.png" >Barbados (+1246)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Belarus-Flag-24.png" >Belarus (+375)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Belgium-Flag-24.png" >Belgium (+32)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Belize-Flag-24.png" >Belize (+501)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Benin-Flag-24.png" >Benin (+229)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Bermuda-24.png" >Bermuda (+1441)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Bhutan-Flag-24.png" >Bhutan (+975)', value:'' },
		   { label: '<img class="img_w" src="'+imagePath+'/uploads/Bolivia-Flag-24.png" >Bolivia (+591)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Bosnian-Flag-24.png" >Bosnia and Herzegovina (+387)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Botswana-Flag-24.png" >Botswana (+267)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Brazil-Flag-24.png" >Brazil (+55)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Brunei-Flag-24.png" >Brunei Darussalam (+673)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Bulgaria-Flag-24.png" >Bulgaria (+359)', value:'' },
		   { label: '<img class="img_w" src="'+imagePath+'/uploads/Burkina-Faso-Flag-24.png" >Burkina Faso (+226)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Burundi-Flag-24.png" >Burundi (+257)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Cambodia-Flag-24.png" >Cambodia (+855)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Cameroon-Flag-24.png" >Cameroon (+237)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Canada-Flag-24.png" >Canada (+1)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Cape-Verde-Flag-24.png" >Cape Verde (+238)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Cayman-Islands-24.png" >Cayman Islands (+1345)', value:'' },
		 { label: '<img class="img_w" src="'+imagePath+'/uploads/Chad-Flag-24.png" >Chad (+235)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Chile-Flag-24.png" >Chile (+56)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/China-Flag-24.png" >China (+86)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Colombia-Flag-24.png" >Colombia (+57)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Comoros-Flag-24.png" >Comoros (+269)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Congo-Flag-24.png" >Congo (+242)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Cook-Islands-24.png" >Cook Islands (+682)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Costa-Rica-Flag-24.png" >Costa Rica (+506)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Croatian-Flag-24.png" >Croatia (+385)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Cuba-Flag-24.png" >Cuba (+53)', value:'' },	
		   { label: '<img class="img_w" src="'+imagePath+'/uploads/Cyprus-Flag-24.png" >Cyprus (+357)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Czech-Republic-Flag-24.png" >Czech Republic (+420)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Djibouti-Flag-24.png" >Djibouti (+253)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Dominicana-24.png" >Dominica (+1767)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Dominican-Republic-Flag-24.png" >Dominican Republic (+1809)', value:'' },	 { label: '<img class="img_w" src="'+imagePath+'/uploads/Ecuador-Flag-24.png" >Ecuador (+593)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/El-Salvador-Flag-24.png" >El Salvador (+503)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Equatorial-Guinea-Flag-24.png" >Equatorial Guinea (+240)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Eritrea-Flag-24.png" >Eritrea (+291)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Estonia-24.png" >Estonia (+372)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Ethiopia-Flag-24.png" >Ethiopia (+251)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Falkland-Islands-24.png" >Falkland Islands (Malvinas) (+500)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Faroe-Islands-24.png" >Faroe Islands (+298)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Fiji-Flag-24.png" >Fiji (+679)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Finland-Flag-24.png" >Finland (+358)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/France-Flag-24.png" >France (+33)', value:'' },
		   { label: '<img class="img_w" src="'+imagePath+'/uploads/French-Polynesia-24.png" >French Polynesia (+689)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Gabon-Flag-24.png" >Gabon (+241)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Gambia-Flag-24.png" >Gambia (+220)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Georgia-Flag-24.png" >Georgia (+995)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Germany-Flag-24.png" >Germany (+49)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Ghana-Flag-24.png" >Ghana (+233)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Gibraltar-Flag-24.png" >Gibraltar (+350)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Greece-Flag-24.png" >Greece (+30)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Greenland-Flag-24.png" >Greenland (+299)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Guadeloupe-24.png" >Guadeloupe (+590)', value:'' },	
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Guam-Flag-24.png" >Guam (+1671)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Guatemala-Flag-24.png" >Guatemala (+502)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Guinea-Flag-24.png" >Guinea (+224)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Guinea-Bissau-Flag-24.png" >Guinea-Bissau (+245)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Guyana-Flag-24.png" >Guyana (+592)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Haiti-Flag-24.png" >Haiti (+509)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Holy-see-Flag-24.png" >Holy See(Vatican City State) (+39)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Honduras-Flag-24.png" >Honduras (+504)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Hong-Kong-Flag-24.png" >Hong Kong (+852)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Hungary-Flag-24.png" >Hungary (+36)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Iceland-Flag-24.png" >Iceland (+354)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/India-Flag-24.png" >India (+91)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Indonesia-Flag-24.png" >Indonesia (+62)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Iraq-Flag-24.png" >Iraq (+964)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Israel-Flag-24.png" >Israel (+972)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Italy-Flag-24.png" >Italy (+39)', value:'' },
		  { label: '<img class="img_w" src="'+imagePath+'/uploads/Japan-Flag-24.png" >Japan (+81)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Jordan-Flag-24.png" >Jordan (+962)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Kazakhstan-Flag-24.png" >Kazakhstan (+7)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Kenya-Flag-24.png" >Kenya (+254)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Kiribati-24.png" >Kiribati (+686)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Korea-Flag-24.png" >Korea Democratic Peoples Republic of (+850)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Kuwait-Flag-24.png" >Kuwait (+965)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Kyrgyzstan-Flag-24.png" >Kyrgyzstan (+996)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Laos-Flag-24.png" >Lao Peoples Democratic Republic (+856)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Lebanon-Flag-24.png" >Lebanon (+961)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Lesotho-Flag-24.png" >Lesotho (+266)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Liberia-Flag-24.png" >Liberia (+231)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Liechtenstein-Flag-24.png" >Liechtenstein (+423)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Lithuania-Flag-24.png" >Lithuania (+370)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Luxembourg-Flag-24.png" >Luxembourg (+352)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Macedonia-Flag-24.png" >Macedonia The Former Yugoslav Republic Of (+389)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Madagascar-Flag-24.png" >Madagascar (+261)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Malawi-Flag-24.png" >Malawi (+265)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Angola-Flag-24.png" >Maldives (+960)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mali-Flag-24.png" >Mali (+223)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Malta-Flag-24.png" >Malta (+356)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Marshall-Islands-Flag-24.png" >Marshall Islands (+692)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Martinique-24.png" >Martinique (+596)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mauritania-Flag-24.png" >Mauritania (+222)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mauritius-Flag-24.png" >Mauritius (+230)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mayotte-Flag-24.png" >Mayotte (+262)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mexico-Flag-24.png" >Mexico (+52)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Micronesia-Flag-24.png" >Micronesia Federated States of (+691)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Moldova-Flag-24.png" >Moldova Republic of (+373)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Monaco-Flag-24.png" >Monaco (+377)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mongolia(+976)" >Mongolia (+976)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Montserrat-Flag-24.png" >Montserrat (+1664)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Morocco-Flag-24.png" >Morocco (+212)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Mozambique-Flag-24.png" >Mozambique (+258)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Myanmar-24.png" >Myanmar (+95)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Nepal-Flag-24.png" >Nepal (+977)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Namibia-Flag-24.png" >Namibia (+264)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Nauru-Flag-24.png" >Nauru (+674)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Netherlands-Flag-24.png" >Netherlands (+31)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/New-Caledonia-Flag-24.png" >New Caledonia (+687)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Nicaragua-Flag-24.png" >Nicaragua (+505)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Niger-Flag-24.png" >Niger (+227)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Nigeria-Flag-24.png" >Nigeria (+234)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Niue-Flag-24.png" >Niue (+683)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Northern-Ireland-24.png" >Northern Mariana Islands (+1670)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Norway-Flag-24.png" >Norway (+47)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Oman-Flag-24.png" >Oman (+968)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Pakistan-Flag-24.png" >Pakistan (+92)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Palau-Flag-24.png" >Palau (+680)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Panama-Flag-24.png" >Panama (+507)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Papua-New-Guinea-Flag-24.png" >Papua New Guinea (+675)', value:'' },{ label: '<img class="img_w" src="'+imagePath+'/uploads/Paraguay-Flag-24.png" >Paraguay (+595)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Peru-Flag-24.png" >Peru (+51)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Philippines-Flag-24.png" >Philippines (+63)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Poland-Flag-24.png" >Poland (+48)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Portugal-Flag-24.png" >Portugal (+351)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Puerto-Rico-Flag-24.png" >Puerto Rico (+1)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Qatar-Flag-24.png" >Qatar (+974)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Reunion-24.png" >Réunion (+262)', value:'' },				
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Romania-Flag-24.png" >Romania (+40)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Russia-Flag-24.png" >Russian Federation (+7)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Rwanda-Flag-24.png" >Rwanda (+250)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Saint-Helena-Flag-24.png" >Saint Helena (+290)', value:'' },{ label: '<img class="img_w" src="'+imagePath+'/uploads/Saint-Lucia-Flag-24.png" >Saint Lucia (+1758)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Samoa-Flag-24.png" >Samoa (+685)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/San-Marino-Flag-24.png" >San Marino (+378)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Saudi-Arabia-Flag-24.png" >Saudi Arabia (+966)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Senegal-Flag-24.png" >Senegal (+221)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Serbia-Flag-24.png" >Serbia (+381)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Seychelles-Flag-24.png" >Seychelles (+248)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Sierra-Leone-Flag-24.png" >Sierra Leone (+232)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Singapore-Flag-24.png" >Singapore (+65)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Slovakia-Flag-24.png" >Slovakia (+421)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Slovenia-Flag-24.png" >Slovenia (+386)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Solomon-Islands-Flag-24.png" >Solomon Islands (+677)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Somalia-Flag-24.png" >Somalia (+252)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/South-Africa-Flag-24.png" >South Africa (+27)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Spain-Flag-24.png" >Spain (+34)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Sri-Lanka-Flag-24.png" >Sri Lanka (+94)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Sudan-Flag-24.png" >Sudan (+249)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Suriname-Flag-24.png" >Suriname (+597)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Swaziland-Flag-24.png" >Swaziland (+268)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Switzerland-Flag-24.png" >Switzerland (+41)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Syria-Flag-24.png" >Syrian Arab Republic (+963)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Taiwan-Flag-24.png" >Taiwan (+886)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Tajikistan-Flag-24.png" >Tajikistan (+992)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Tanzania-Flag-24.png" >Tanzania United Republic of (+255)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Thailand-Flag-24.png" >Thailand (+66)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Timor-Leste-Flag-24.png" >Timor-Leste (+670)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Togo-Flag-24.png" >Togo (+228)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Tonga-Flag-24.png" >Tonga (+676)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Trinidad-and-Tobago-24.png" >Trinidad and Tobago (+1868)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Tunisia-Flag-24.png" >Tunisia (+216)', value:'' },	
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Turkey-Flag-24.png" >Turkey (+90)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Turkmenistan-Flag-24.png" >Turkmenistan (+993)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Tuvalu-Flag-24.png" >Tuvalu (+688)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Uganda-Flag-24.png" >Uganda (+256)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Ukraine-Flag-24.png" >Ukraine (+380)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/United-Arab-Emirates-24.png" >United Arab Emirates (+971)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/United-Kingdom-flag-24.png" >United Kingdom (+44)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/United-States-Flag-24.png" >United States (+1)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Vanuatu-Flag-24.png" >Vanuatu (+678)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Uzbekistan-Flag-24.png" >Uzbekistan (+998)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Venezuela-Flag-24.png" >Venezuela (+58)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Vietnam-Flag-24.png" >Vietnam (+84)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Wallis-and-Futuna-Flag-24.png" >Wallis and Futuna (+681)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Yemen-Flag-24.png" >Yemen (+967)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Zambia-Flag-24.png" >Zambia (+260)', value:'' },
			{ label: '<img class="img_w" src="'+imagePath+'/uploads/Zimbabwe-Flag-24.png" >Zimbabwe (+263)', value:'' },
       ];
       $( "#flag_1" ).autocomplete({
			source: availableTags1,
			html: 'html',
			select: function (event, ui){ 
			var selectedObj = ui.item;
			var value=selectedObj.value;
			$('#flagHolder_2').html('<a id="img">'+selectedObj.label+'</a>') 
			$('#flagContainer_1').show();
			$('#flag_1').attr('placeholder', 'Search..'); 
			$('#cflag').hide();
		}
      });
});
function flag_c(){
	$('#flag_1').val('');
	$('#cflag').show();
} 
function bollFun1(){
	$('#cflag').show();
	$('#flagContainer_1').hide();
	$('#flag_1').focus(); 
}
function showFlag1() {
	$('#flagContainer_1').show();
	$('#cflag').hide();
}
</script>
